/**
 * Created by way on 16/9/19.
 */

export default {
  app: {
    debug: 1,
    token: 'nuoya.token',
    code: 'nuoya.code',
    lastCode: 'nuoya.lastCode',
    docker: 'nuoya.docker',
    nauoyaSite: 'nuoya.site',
    hotCount: 20, // 热门分享一次获取数量
    imgWHR: 1.9,   // 上传图片宽高比
    imgWHR2: 2.66667,   // 上传图片宽高比37.5%
    imgCompress: 0.3 // 图片压缩比
    , LoadQuantity: 10, //每次加载数量
  },
  dev: {
    // token: 'eyJhbGciOiJIUzI1NiIsICJ0eXAiOiJKV1QifQ.eyJwaWQiOiIxMjE1Njc4MCIsInRhYiI6MSwic2lkIjoxMX0.rS2B92aWlIMydTaZnhilZ9hzUxM4wlPIRCSJ_05cKlk'
  },
  // 用户
  user: {
    api: {
      host: 'http://ws.nuoya.io/user/api/',
      userInfo: 'relandwx', // getInfo', zxd ???
      token: 'relTokens'    // getToken', zxd ???
    },
    view: {

    }
  },

  // user: {
  //   api: {
  //     host: 'http://wx.nuoyadalu.com/user/api/',
  //     userInfo: 'relandwx', // getInfo', zxd ???
  //     token: 'relTokens'    // getToken', zxd ???
  //   },
  //   view: {

  //   }
  // },

  rel: {
    host: 'http://rel.nuoyadalu.com/',
    userInfo: 'user/api/getInfo',
    token: 'user/api/getToken',
    lotteryJoin: 'lottery/api/join',
    lotteryGet: 'lottery/api/get',
    lotterySet: 'lottery/api/set',
    couponGet: 'coupon/api/get',
    couponPoster: 'coupon/api/poster',
    couponPosterImg: 'http://nuoya-10038118.image.myqcloud.com/test1471935786508',
  },
  api: {
    host: 'http://wx.nuoyadalu.com/',
    book: 'prod/api/book',
    token: 'user/api/getToken',
    wxsign: 'wx/getSign',
    prodLoad: 'prod/api/load',
    prodList: 'prod/api/list',
    prodHead: 'prod/api/getHeadUrl',
    shipList: 'ship/api/list',
    topicLoad: 'topic/api/load',
    topicNewNo: 'topic/api/newTopicNo',
    topicSave: 'topic/api/save',
    articleLoad: 'topic/api/load',
    articleNewNo: 'article/api/newTopicNo',
    articleSave: 'article/api/save',
    couponGet: 'coupon/api/get',
    couponCheck: 'coupon/api/check',
    mutualCalssRepGet: 'mutual/api/getClassRep',
  },
  view: {
    host: 'http://nydl-10038118.cos.myqcloud.com/',
    hot: 'view/hot.html',
    book: 'view/book.html',
    prod: 'view/prod.html',
    crop: 'view/crop.html',
    post: 'view/post.html',
    poster: 'view/poster.html',
    desc: 'view/desc.html',
    topicEdit: 'topic/edit.html',
    articleEdit: 'article/edit.html',
    mutual: 'mutual/',
    mutualCoupon: 'mutual/coupon.html',
    mutualDetail: 'mutual/detail.html',
    mutualBook: 'mutual/book.html',
    mutualClassRep: 'mutual/classRep.html',
    rel: 'rel/',
    lotteryJoin: 'lottery/join.html',
    lotteryOpen: 'lottery/open.html',
    couponGet: 'coupon/get.html',
    couponPoster: 'coupon/poster.html',
  },
  mutual: {
    host: 'http://cos.nuoya.io/mutual/',
    coupon: 'coupon.html',
    detail: 'detail.html',
    book: 'book.html',
    classRep: 'classRep.html'
  },
  turn: {
    view: 'http://cos.nuoya.io/turn/',
    pad: 'pad.html',
    prize: 'prize.html',
    follow: 'follow.html',
    api: 'http://rel.nuoyadalu.com/',
    token: 'user/api/getToken',
    join: 'lottery/api/join',
    check: 'lottery/api/check',
    get: 'lottery/api/get',
    set: 'lottery/api/set',
    roundPrize: 'lottery/api/roundPrize'
  },
  doc: {
    host: 'http://nydl-10038118.cos.myqcloud.com/doc/',
    mutual: 'mutual/'
  },
  // 拍卖
  bid: {
    api: {
      host: 'http://wx.nuoyadalu.com/order/api/', // ???
      create: 'create', // 创建拍卖
      start: 'start',   // 启动拍卖
      stop: 'stop',     // 停止拍卖
      getBid: 'getBid', // 获取拍卖信息
      bid: 'bid',       // 出价
      list: 'listBid'   // 出价列表
    },
    view: {
      host: 'https://cas.nuoya.io/bid/',
      create: 'create.html',
      start: 'start.html',
      bid: 'bid.html',
      list: 'list.html'
    }
  },
  ogs: {
    host: "http://ws.nuoya.io/",
    userInfo: 'user/api/getrelandwxone', // getInfo', zxd ???
    token: 'user/api/getrelTokens',    // getToken', zxd ???
    users: "user/list",
    ws: "ws://ws.nuoya.io",
    fullTimeService: ["73268377", "94242819"],
    createOrder: "ogs/api/createIssue",
    upIssueServiceId: "ogs/api/upIssueServiceId",
    siteParam: "user/api/GetSite",
    relToken: "user/api/relTokens",
    relandwx: "user/api/relandwx",
    getOrder: "ogs/api/issueList",
    saveMsg: "ogs/api/saveMsg",
    msgList: "ogs/api/msgList",
    closeIssue: "ogs/api/closeIssue",
    getOpenId: "user/api/Getopenid",
    pushLink: "https://imapi.icbc.com.cn/open/oauth2?scope=base&appid=Xu1D5gWQHxALNWWKUqXa2Q%3D%3D&redirect=http%3A%2F%2Frel.nuoyadalu.com%2Fogs%2Findex.html?sid=1%26tab=1%26",
    review: "ogs/api/review",
    checkIssue: "ogs/api/checkIssue",
    allUsers: "user/api/getuserinfo",
    memberPid: [],
    exportProcess: "ogs/api/upIssueProcess",
    lcUsers: "lcUsers",
    view: {
      host: 'http://cas-10038118.cossh.myqcloud.com/ogs/',
      join: 'join.html',
      list: 'list.html',
      deltail: 'deltail.html',
      evaluate: 'evaluate.html'
    }
  },
  ticket: {
    airTicket: 'http://jipiao.mall.icbc.com.cn/html5/flightmb/flightmb.aspx', // 飞机票
    mgTrain: '', // 火车票
    lunchuan: '', // 轮船
    dache: '', // 打车
    jiudian: '', // 酒店
  },
  air: {
    host: 'http://flight-10038118.cos.myqcloud.com',
    cityLib: '/oa/res/cityLib/cityLib.html',
    airCityLib: 'nuoya.airCityLib',
  },
  /*  test: {
   host: 'http://flight-10038118.cos.myqcloud.com', // 测试数据域名

   postAct: '/xh12306post', // post方法
   getAct: '/xh12306get', // get方法

   getICBCPassenger: '/getICBCPassenger', //乘客
   stationlist: '?action=stationlist',//火车地址库
   gettrainlist: '?action=gettrainlist',//列表
   },*/
  train: {
    trainCityLib: 'nuoya.trainCityLib',
    queryDate: 'nuoya.queryDate',
    pinYin: 'nuoya.pinYin',
    passengerData: 'nuoya.passengerData',
    TJ_Info: 'nuoya.TJ_Info',
    trainPact: 'nuoya.trainPact',

    LoadQuantity: 50, //每次加载数量

    // host3: 'http://tapi.lcwoyo.com/trainapi.ashx',//火车票接口

    host: 'http://hcp.ebsp.cn', // 火车票数据域名
    // host: 'http://localhost:9003', // 本地
    postAct: '/xh12306post', // post方法
    getAct: '/xh12306get', // get方法

    // host: 'http://hcp.ebsp.cn', // 火车票数据域名
    // host: 'http://hcp.ebsp.cn:9003/xh12306', // 火车票数据域名
    // host: 'http://106.75.131.58:9003/xh12306', // 火车票数据域名

    //获取乘机人post方式
    getICBCPassenger: '/getICBCPassenger',// 乘客
    orderList: '/getOrderList',//订单列表

    // host2: 'http://hcp.ebsp.cn', // 58测试域名地址
    // host2: 'http://test.ebsp.cn', // 58测试域名地址
    // host2: 'http://106.75.131.58', // 58测试域名地址

    stationlist: '?action=stationlist',//火车地址库
    createorder: '?action=createorder',//提交订单
    gettrainbycode: '?action=gettrainbycode',//traincode
    gettrainlist: '?action=gettrainlist',//列表 ?action=gettrainlist&date=2017-06-23&fromcity=CUW&tocity=GZQ

    contacts: '/icbc/xhService.ashx?act=GETADDRESSES', // 联系人
    passengerUrl: '/icbc/ajax.aspx?act=getBookInfo',  // 乘客

    view: {
      home: '/train/home.html',
      list: '/train/list.html',
      book: '/train/book.html',
      contacts: '/train/contacts.html',
      listDetail: '/train/list-detail.html',
      order: '/train/order.html',
      orderDetail: '/train/order-detail.html',
      orderQuery: '/train/order-query.html',
      passenger: '/train/passenger.html',
      payResult: '/train/pay-result.html',
      user: '/train/user.html',
    },
    warnMsg: '非常抱歉，网络有问题，获取乘客信息失败，请重试',
  }
};
